<div class="title-menu">
    <h2>Bảng khách hàng</h2>
</div>
<nav class="bonus">
</nav>
<article>
    <table cellspacing="0" cellpadding="5" border="1">
        <tr>
            <th>ID</th>
            <th>Email</th>
            <th>Tên</th>
            <th>Số điện thoại</th>
            <th>Địa chỉ</th>
            <th>Ngày tạo</th>
            <th>Tùy chọn</th>
        </tr>
        <?php
        if (isset($listpro) && count($listpro))
            foreach ($listpro as $pro) {
                ?>
                <tr>
                    <td><?php echo $pro->id; ?></td>
                    <td><?php echo $pro->email; ?></td>
                    <td><?php echo $pro->name; ?></td>
                    <td><?php echo $pro->phone; ?></td>
                    <td><?php echo $pro->address; ?></td>
                    <td><?php echo $pro->created; ?></td>
                    <td><a href="<?php echo base_url("backend/customers/delete").'/'.$pro->id; ?>" onClick="return confirm('Xác nhận xóa')">Xóa</a></td>
                </tr>        
                <?php
            }
        ?>
    </table>
    <?php if(isset($paging)) echo $paging;?>

</article>